const resolve = dir => require('path').join(__dirname, dir);

module.exports = {
  chainWebpack: config => {
    config.resolve.alias
      .set('@', resolve('src'))
      .set('_c', resolve('src/components'))
      .set('_u', resolve('src/utils'))
  },
  devServer: {
    disableHostCheck: true,
    port:8080,
    overlay: {
      warnings: false, // 不显示警告
      errors: false// 不显示错误
    }

  },
  lintOnSave: false // 关闭eslint检查
}
